@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>评论管理管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-2">
                                <#NameCon id="keyword" name="内容关键字" />
                            </div>
                            <div class="col-sm-2">
                                <#TimeCon id="createTimeL" name="创建时间起始点" isTime="true" pattern="YYYY-MM-DD" />
                            </div>
                            <div class="col-sm-2">
                                <#TimeCon id="createTimeR" name="创建时间结束点" isTime="true" pattern="YYYY-MM-DD" />
                            </div>
                            <div class="col-sm-2">
                                <#SelectCon id="status" name="安全状态" >
                                    <option value="">全部</option>
                                    <option value="0">冻结</option>
                                    <option value="1">正常</option>
                                </#SelectCon>
                            </div>
                            <div class="col-sm-2">
                                <#SelectCon id="fromId" name="发送者" >
                                    <option value="">全部</option>
                                    @for (user in users){
                                    <option value="${user.id}">${user.name}</option>
                                    @}
                                </#SelectCon>
                            </div>
                            <div class="col-sm-2">
                                <#button name="搜索" icon="fa-search" clickFun="Comments.search()"/>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2">
                                <#SelectCon id="toId" name="接受者" >
                                    <option value="">全部</option>
                                    @for (user in users){
                                    <option value="${user.id}">${user.name}</option>
                                    @}
                                </#SelectCon>
                            </div>
                            <div class="col-sm-2">
                                <#SelectCon id="ownType" name="评论类型" underline="true">
                                    <option value="">全部</option>
                                    <option value="0">求助评论（完成交易时）</option>
                                    <option value="1">技能评论（完成交易时）</option>
                                    <option value="2">广场求助评论</option>
                                </#SelectCon>
                            </div>
                            <div class="col-sm-2">
                                <#NameCon id="ownId" name="所属类型外键" underline="true"/>
                            </div>
                            <div class="col-sm-2">
                                <#NameCon id="id" name="id" />
                            </div>
                        </div>
                        <div class="hidden-xs" id="CommentsTableToolbar" role="group">
                            @if(shiro.hasPermission("/comments/add")){
                            <#button name="添加" icon="fa-plus" clickFun="Comments.openAddComments()"/>
                            @}
                            @if(shiro.hasPermission("/comments/update")){
                            <#button name="修改" icon="fa-edit" clickFun="Comments.openCommentsDetail()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/comments/delete")){
                            <#button name="删除" icon="fa-remove" clickFun="Comments.delete()" space="true"/>
                            @}
                        </div>
                        <#table id="CommentsTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/system/comments/comments.js"></script>
@}
